
<?php //define('SITE_URL', 'http://'.$_SERVER["SERVER_NAME"].'/mvc'); ?>

<?php include'views/templates/layouts/'.$this->layout.'/header.php'; ?>
<div id="preface">
                <div class="container grid">
                    <div class="row">
                        <div class="col-2-3">
                            <h2>
                                Detail
                            </h2>
                            <p>
                                Check out our most recent project we've completed
                            </p>
                        </div>
                        <div class="col-1-3 navigation">
                            <a
                                href="#"
                                class="ui_button"
                            >
                                <i class="icon-angle-left"></i>
                                <span>
                                    PREVIOUS
                                </span>
                            </a>
                            <a
                                href="#"
                                class="ui_button"
                            >
                                <span>
                                    NEXT
                                </span>
                                <i class="icon-angle-right"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>

<div>
                <div
                    class="container ui_slider"
                    data-ui_slider_controls="false"
                    data-ui_slider_pager="true"
                >
                    <ul>

                        <!-- SLIDE -->

                        <li>
                            <img
                                src="<?php echo SITE_URL;?>/media/img/photos/detail/01.jpg"
                                alt=""
                            />
                        </li>

                        <!-- SLIDE -->

                        <li>
                            <img
                                src="<?php echo SITE_URL;?>/media/img/photos/detail/02.jpg"
                                alt=""
                            />
                        </li>

                        <!-- SLIDE -->

                        <li>
                            <img
                                src="<?php echo SITE_URL;?>/media/img/photos/detail/03.jpg"
                                alt=""
                            />
                        </li>

                        <!-- SLIDE -->

                        <li>
                            <img
                                src="<?php echo SITE_URL;?>/media/img/photos/detail/04.jpg"
                                alt=""
                            />
                        </li>

                        <!-- SLIDE -->

                        <li>
                            <img
                                src="<?php echo SITE_URL;?>/media/img/photos/detail/05.jpg"
                                alt=""
                            />
                        </li>
                    </ul>
                </div>
            </div>

            <!-- CONTENT -->

            <div id="detail">
                <div class="container grid">
                    <div class="row">

                        <!-- DESCRIPTION -->
						<?php $row =mysqli_fetch_array($CatPro);
						{
						?>
							<div class="col-11-16">
								
								<h3>
									<?php echo $row['title'] ?>
								</h3>
								
								<p>
									<img src="<?php echo SITE_URL.'/media/img/'.$row['image']; ?>" />
								</p>
									<?php echo $row['content'] ?>
									<?php  include_once ('models/productfront_model.php');
										$this->model3 = new Productfront_Model();
										$getnameCat= $this->model3 ->getCatProIdProduct($row['id']);
										//var_dump($getnameCat); exit();
										while($row1 =mysqli_fetch_array($getnameCat))
										{?>
											<a href="index.php?controller=pagehome&action=getAllProductForACat&name=<?php echo $row1['nameCat']?>"><?php echo $row1['nameCat']?></a> <br/>
										<?php
										}
										mysqli_data_seek($getnameCat,0);
										?>
										
							</div>
							
						<?php  
						}
						?>
						
                        <div class="col-1-16 gap"></div>

                        <!-- SIDEBAR -->

                        <div
                            id="sidebar"
                            class="col-4-16"
                        >

                            <!-- INFO -->

                            <h5>
                                ROLE
                            </h5>
                            <p>
                                Webdesign
                            </p>
                            <h5>
                                CLIENT
                            </h5>
                            <p>
                                <a href="#">
                                    ThemeForest
                                </a>
                            </p>
                            <ul class="float links">
                                <li>
                                    <a
                                        href="#"
                                        class="ui_button"
                                    >
                                        <i class="icon-link"></i>
                                        <span>
                                            VISIT SITE
                                        </span>
                                    </a>
                                </li>
                            </ul>

                            <!-- SOCIAL -->

                            <h5>
                                SHARE
                            </h5>
                            <ul class="float social">
                                <li>
                                    <a
                                        href="#"
                                        class="icon-twitter-sign"
                                    ></a>
                                </li>
                                <li>
                                    <a
                                        href="#"
                                        class="icon-facebook-sign"
                                    ></a>
                                </li>
                                <li>
                                    <a
                                        href="#"
                                        class="icon-github-sign"
                                    ></a>
                                </li>
                                <li>
                                    <a
                                        href="#"
                                        class="icon-linkedin-sign"
                                    ></a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <!-- RELATED PROJECTS -->

            <div id="related">
                <div class="container">
                    <h5>
                        RELATED PROJECTS
                    </h5>
                    <div class="grid">
                        <ul class="row items fade">

                            <!-- PROJECT -->

                            <li class="col-1-3">
                                <a href="detail.html">
                                    <span class="image">
                                        <img
                                            src="<?php echo SITE_URL;?>/media/img/photos/works/04.jpg"
                                            alt=""
                                        />
                                    </span>
                                    <span class="description">
                                        <h4>
                                            It is situated in the bay
                                        </h4>
                                        <p>
                                            a short distance from that
                                        </p>
                                    </span>
                                </a>
                            </li>

                            <!-- PROJECT -->

                            <li class="col-1-3">
                                <a href="detail.html">
                                    <span class="image">
                                        <img
                                            src="<?php echo SITE_URL;?>/media/img/photos/works/05.jpg"
                                            alt=""
                                        />
                                    </span>
                                    <span class="description">
                                        <h4>
                                            It is situated in the bay
                                        </h4>
                                        <p>
                                            a short distance from that
                                        </p>
                                    </span>
                                </a>
                            </li>

                            <!-- PROJECT -->

                            <li class="col-1-3">
                                <a href="detail.html">
                                    <span class="image">
                                        <img
                                            src="<?php echo SITE_URL;?>/media/img/photos/works/06.jpg"
                                            alt=""
                                        />
                                    </span>
                                    <span class="description">
                                        <h4>
                                            It is situated in the bay
                                        </h4>
                                        <p>
                                            a short distance from that
                                        </p>
                                    </span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

            <!-- QUOTATION REQUEST -->

            <div
                id="request"
                class="highlight"
            >
                <div class="container">
                    <a
                        href="#"
                        class="ui_button"
                        data-ui_button_type="inverse"
                    >
                        REQUEST A QUOTE
                    </a>
                </div>
            </div>
<?php include'views/templates/'.$this->layout.'/footer.php'; ?>